package com.tyk.bookstore.front.product.repository;


import com.tyk.bookstore.front.common.dal.mapper.IMapper;
import com.tyk.bookstore.front.product.model.entity.BookCollectDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tyk
 * @description 收藏管理
 */
@Mapper
public interface BookCollectRepository extends IMapper<BookCollectDo> {
    void deleteByMemberIdAndBookId(@Param("bookId") Long bookId, @Param("memberId") Long memberId);

    List<Long> selectBookIdListByMemberId(@Param("memberId") Long memberId);

    Long existById(@Param("bookId") Long bookId, @Param("memberId") Long memberId);
}
